package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.cust.CustPermissionDao;
import sjtu.ist.warehouse4ws.model.CustPermission;

public class CustPermissionServiceImpl implements CustPermissionService{
	private CustPermissionDao custPermissionDao;


	public void setCustPermissionDao(CustPermissionDao permissionDao) {
		this.custPermissionDao =  permissionDao;
	}


	@Override
	public boolean addCustPermission(CustPermission permission) {
		
		this.custPermissionDao.save(permission);
		// TODO Auto-generated method stub
		return false;
	}


	@Override
	public List<CustPermission> getCustPermissionListById(String id) {
		// TODO Auto-generated method stub
		return (List<CustPermission>)custPermissionDao.findById(id);
	}

}
